Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/network: Make NetworkService::set_priority_group async #7352

Merged
1 commit merged into from
Oct 22, 2020

Conversation

mxinden
Copy link
Contributor

@mxinden mxinden commented Oct 19, 2020

As done with NetworkService::{add_to,remove_from}_priority_group, make
NetworkService::set_priority_group async as well. This future-proofs
the API should we ever decide to use a bounded channel between
NetworkService and NetworkWorker.

See #7247 (comment) for past discussion.

Release note suggestion:

Make NetworkService::set_priority_group async. Doing so for all methods would eventually allow to use a bounded channel between NetworkService and NetworkWorker.

As done with `NetworkService::{add_to,remove_from}_priority_group`, make
`NetworkService::set_priority_group` async as well. This future-proofs
the API should we ever decide to use a bounded channel between
`NetworkService` and `NetworkWorker`.
@mxinden mxinden added A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. B2-breaksapi labels Oct 19, 2020
@mxinden mxinden requested review from tomaka and ordian October 19, 2020 12:50
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Note, that we're not using set_priority_group in validator discovery anymore.

@mxinden
Copy link
Contributor Author

mxinden commented Oct 22, 2020

bot merge

@ghost
Copy link

ghost commented Oct 22, 2020

Trying merge.

@ghost ghost merged commit 575cbf8 into paritytech:master Oct 22, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants